//用ajax请求假数据
$.ajax({
    type :"GET",
    url : "http://www.easy-mock.com/mock/5a1cf6291d7fcc245cfac363/shoppingWibsite/catalog?jsonp_param_name=callback",
    dataType : "jsonp",
    success:function (list) {
        $("#Catalog01_jeans").html(template("sectionList",list));
        $("#Catalog01_list").html(template("sectionNav",list));
        $("#catalog01_site").html(template("sectionSite",list));
        $("#Catalog01_banner").html(template("sectionBanner",list));
        $("#Catalog01_view_ul").html(template("sectionView",list));
        console.log(list);
    },
    error : function(XMLHttpRequest, textStatus, errorThrown) {
        var info = "XMLHttpRequest:" + JSON.stringify(XMLHttpRequest)+ " ;textStatus:" + textStatus + "; errorThrown:"+ JSON.stringify(errorThrown) + ";【" + "url" + "】";
        console.log(info);
    }
});

$.ajax({
    type :"GET",
    url : "http://www.easy-mock.com/mock/5a1cf6291d7fcc245cfac363/shoppingWibsite/headerAndFooter?jsonp_param_name=callback",
    dataType : "jsonp",
    success:function (list) {
        $("#headerMain_nav").html(template("headerNav",list));
        $("#footerTop_list").html(template("footerTopList",list));
        $("#footerBottom_span1").html(template("commonFooterSpan1",list));
        $("#footerBottom_span3").html(template("commonFooterAwesome",list));
        $("#headerTopLeft").html(template("head_left",list));
        $("#headerTopRight").html(template("head_right",list));
        console.log(list);
    },
    error : function(XMLHttpRequest, textStatus, errorThrown) {
        var info = "XMLHttpRequest:" + JSON.stringify(XMLHttpRequest)+ " ;textStatus:" + textStatus + "; errorThrown:"+ JSON.stringify(errorThrown) + ";【" + "url" + "】";
        console.log(info);
    }
});